#ifndef __HELLOWORLD_SCENE_H__
#define __HELLOWORLD_SCENE_H__

#include "cocos2d.h"
#include "2d\CCDrawNode.h"
#include "GameLogic.h"

class HelloWorld : public cocos2d::Layer
{
public:
	~HelloWorld();
    static cocos2d::Scene* createScene();

    virtual bool init();

	virtual void update(float fDelta);
    
    // a selector callback
    void menuCloseCallback(cocos2d::Ref* pSender);

	void directionCallBack(cocos2d::Ref* pSender);
    
	// implement the "static create()" method manually
    CREATE_FUNC(HelloWorld);

private:
	cocos2d::DrawNode *mpDrawNodeFood;
	std::list<cocos2d::DrawNode*> mDrawNodeList;
	GameLogic mGameLogic;

};

#endif // __HELLOWORLD_SCENE_H__
